package com.mo.math;

import java.util.Scanner;

/**
 * @ClassName MinCommonMultiple
 * @Description 求最小公倍数
 * @Author Administrator
 * @Date 2021/8/3
 * @Version 1.0
 */
public class MinCommonMultiple {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int i = scanner.nextInt();
        int j = scanner.nextInt();
        int temp = commonMultiple(i, j);
        System.out.println(i + " 与 " + j + "的最小公倍数是：" + temp);

    }

    public static int commonMultiple(int i, int j) {
        int temp = MaxCommonDivisor.commonDivisor(Math.max(i, j), Math.min(i, j));
        int a = i * j;
        return a / temp;
    }
}
